export default{
    setItem(k:string,v:any){
    localStorage.setItem(k, JSON.stringify(v))
    },
    getItem(k:string,parse?:boolean){
        const raw = localStorage.getItem(k)
        return raw&&parse?JSON.parse(raw):raw
    }
}